package com.tbit.uqbike.webmanager.controller;

import com.tbit.uqbike.object.pojo.dto.ClockInManageDTO;
import com.tbit.uqbike.object.pojo.vo.AccountUserWorkVo;
import com.tbit.common.entity.view.PageResult;
import com.tbit.common.entity.view.Result;
import com.tbit.uqbike.service.business.ClockInManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 运维打卡管理
 *
 * @Author LHX
 * @ClassName ClockInManageController
 * @Description
 * @date 2023/5/15 15:17
 * @Version 1.0
 */
@RestController
@RequestMapping("/clockInManage")
public class ClockInManageController {

    @Autowired
    private ClockInManageService clockInManageService;

    /**
     * 分页查询运维打卡记录
     *
     * @param dto
     * @return
     */
    @RequestMapping("/queryPage")
    public Result<PageResult<AccountUserWorkVo>> queryPage(ClockInManageDTO dto) {
        PageResult<AccountUserWorkVo> result = clockInManageService.queryPage(dto);
        return Result.success(result);
    }

    /**
     * 信息导出
     *
     * @param dto
     * @return
     */
    @RequestMapping("/exportClockInManage")
    public Result exportClockInManage(ClockInManageDTO dto) {
        return clockInManageService.exportClockInManage(dto);
    }
}
